package com.gxa.modules.model.entity.fee;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 住院信息表
 * </p>
 *
 * @author gxa
 * @since 2022-11-12 11:12:58
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_inpatient_detail")
@ApiModel(value = "InpatientDetail对象", description = "住院信息表")
public class InpatientDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("住院信息id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("患者的id")
    @TableField("patient_id")
    private Integer patientId;

    @ApiModelProperty("住院号")
    @TableField("inpatient_num")
    private String inpatientNum;

    @ApiModelProperty("住院状态：0：住院中，1：已出院")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("院区的id")
    @TableField("park_id")
    private Integer parkId;

    @ApiModelProperty("住院科室的id")
    @TableField("inpatient_dep_id")
    private Integer inpatientDepId;

    @ApiModelProperty("开单医生的id")
    @TableField("doctor_id")
    private Integer doctorId;

    @ApiModelProperty("开单时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("入院时间")
    @TableField("in_hospital_time")
    private Date inHospitalTime;

    @ApiModelProperty("出院时间")
    @TableField("leave_hospital_time")
    private Date leaveHospitalTime;

    @ApiModelProperty("逻辑删除")
    @TableField("is_delete")
    private Integer isDelete;


}
